<!DOCTYPE html>
<html lang="zh-Hans" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>接口日志查询</title>
    <div th:replace="cqzd/common/common-resource :: global-header"></div>
</head>
<body>
<div style="padding:5px;">
    <div class="search-condition">
        <div class="list">
            <div id="form1">
                <table style="width:80%;padding:5px;" class="table" >
                    <tr>

                        <td class="form_label">
                            &nbsp;&nbsp;&nbsp;&nbsp; 日志创建时间:
                        </td>
                        <td colspan="3">
                            <table style="border: 0px; background-color: transparent"
                                   border="0" cellspacing="0" cellpadding="0">
                                <tr style="border: 0px none; background-color: transparent;">
                                    <td style="border: 0px none; background-color: transparent;">
                                    </td>
                                    <td style="border: 0px none; background-color: transparent;">
                                        <input id="statrDate" class="mini-datepicker" name="startDate"
                                               format="yyyy-MM-dd H:mm:ss" timeFormat="H:mm:ss"
                                               showTime="true"
                                               style="width: 200px"  />
                                    </td>
                                    <td style="border: 0px none; background-color: transparent;">
                                        到:</td>
                                    <td style="border: 0px none; background-color: transparent;">
                                        <input class="mini-datepicker" name="endDate"
                                               format="yyyy-MM-dd H:mm:ss" timeFormat="H:mm:ss"
                                               showTime="true"
                                               style="width: 200px"ondrawdate="onDrawDate"  />
                            </table></td>
                        <td class="btn-wrap">
                            <input class="mini-button" text="查询" onclick="search" iconCls="icon-search"/>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
    </div>
</div>

<div class="mini-fit" style="padding:0px 5px 5px 5px;">
    <div id="datagrid1" class="mini-datagrid" style="width:100%;height:100%;"
         url="cqzd/do/interface/queryList" dataField="data" idField="id"  sizeList="[10,20,50,100]" multiSelect="true" onrowdblclick="rowdblclick" onselectionchanged="selectionChanged">
        <div property="columns">
            <div type="checkcolumn"></div>
            <div field="logInterfaceType" width="120" headerAlign="center" align="center" allowSort="true">接口类型</div>
            <div field="direction" width="120" headerAlign="center" align="center" allowSort="true">方向</div>
            <div field="source" width="120" headerAlign="center" align="center" allowSort="true">信息源</div>
            <div field="dest" width="120" headerAlign="center" align="center" allowSort="true" >信息目标</div>
            <div field="context" width="120" headerAlign="center" align="center" allowSort="true" renderer="renderSex">信息内容</div>
            <div field="logTime" width="120" headerAlign="center" align="center" allowSort="true" dateFormat="yyyy-MM-dd">发生时间</div>
            <div field="state" width="120" headerAlign="center" align="center" allowSort="true">成功与否</div>
            <div field="sendCount" width="120" headerAlign="center" align="center" allowSort="true">发送次数</div>
        </div>
    </div>
</div>

<script type="text/javascript">
    txkui.parse();

    var moduleUlr="cqzd/do/interface/";
    var form = new mini.Form("#form1");
    var grid = mini.get("datagrid1");
    (function(){
        grid.load();
    })();

    function search(){
        //校验
        form.validate();
        if (form.isValid()===false) return;

        var formData = form.getData(true, true);

        //var json = mini.encode(formData);
        grid.load(formData);
    }





</script>

</body>
</html>